package com.sise.foodplatform.pojo;

import com.sise.foodplatform.pojo.User;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

@Data
@NoArgsConstructor
public class Restaurant implements Serializable {
    private int resId;                   //餐馆id
    private String resName;              //餐馆名称
    private String resInfo;              //餐馆简介
    private String resPic;               //餐馆图片
    private String resAddress;           //餐馆地址
    private int userId;                  //发表餐馆的用户
    private int resState;                //餐馆状态
    private Timestamp resDate;                //餐馆添加时间
    private int resLike;                 //餐馆喜欢人数

    public Restaurant(int resId, String resName, String resInfo, String resPic, String resAddress, int userId, int resState, Timestamp resDate, int resLike) {
        this.resId = resId;
        this.resName = resName;
        this.resInfo = resInfo;
        this.resPic = resPic;
        this.resAddress = resAddress;
        this.userId = userId;
        this.resState = resState;
        this.resDate = resDate;
        this.resLike = resLike;
    }

    public int getResLike() {
        return resLike;
    }

    public void setResLike(int resLike) {
        this.resLike = resLike;
    }

    @Override
    public String toString() {
        return "Restaurant{" +
                "resId=" + resId +
                ", resName='" + resName + '\'' +
                ", resInfo='" + resInfo + '\'' +
                ", resPic='" + resPic + '\'' +
                ", resAddress='" + resAddress + '\'' +
                ", userId=" + userId +
                ", resState=" + resState +
                '}';
    }

    public Timestamp getResDate() {
        return resDate;
    }

    public void setResDate(Timestamp resDate) {
        this.resDate = resDate;
    }

    public int getResId() {
        return resId;
    }

    public void setResId(int resId) {
        this.resId = resId;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public String getResInfo() {
        return resInfo;
    }

    public void setResInfo(String resInfo) {
        this.resInfo = resInfo;
    }

    public String getResPic() {
        return resPic;
    }

    public void setResPic(String resPic) {
        this.resPic = resPic;
    }

    public String getResAddress() {
        return resAddress;
    }

    public void setResAddress(String resAddress) {
        this.resAddress = resAddress;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getResState() {
        return resState;
    }

    public void setResState(int resState) {
        this.resState = resState;
    }
}
